package com.novellotus.iov.carvice.bean;

import java.util.List;

/**
 * Created by Rich on 2017/8/17.
 * mqtt单车数据
 */

public class MqttVehicleBean {

    /**
     * collect_time : 2017-08-17 16:58:44
     * vehicle : {"vehicle_status":1,"charge_status":3,"running_mode":1,"speed":0,"record_mileage":200,"total_voltage":624,"total_current":0,"soc":100,"dc_status":1,"gear":"P","braking_force":0,"driving_force":0,"insulation_resistance":288,"accelerator_pedal_stroke":0,"brake_pedal_status":0}
     * motor : [{"sn":1,"status":3,"control_temp":28,"speed":0,"torque":0,"motor_temp":35,"control_in_voltage":123,"control_bus_current":0}]
     * location : {"status":0,"lng":104.081674,"lat":30.585292}
     * extremum : {"highest_voltage_battery_subsys_num":1,"highest_voltage_battery_single_num":22,"battery_single_highest_voltage":3.604,"lowest_voltage_battery_subsys_num":1,"lowest_voltage_battery_single_num":102,"battery_single_lowest_voltage":3.411,"highest_temp_battery_subsys_num":1,"highest_temp_battery_probe_num":9,"highest_temp":11,"lowest_temp_battery_subsys_num":1,"lowest_temp_battery_probe_num":1,"lowest_temp":10}
     * alarm : {"highest_alarm_level":3,"temp_diff":0,"battery_high_temp":0,"power_battery_pack_overvoltage":0,"power_battery_pack_undervoltage":0,"soc_low":0,"single_battery_overvoltage":0,"single_battery_undervoltage":0,"soc_hightest":0,"soc_jump_change":0,"power_battery_pack_mismatch":0,"power_battery_pack_consistency_diff":0,"insulation":1,"dc_dc_temp":0,"brake_sys":0,"dc_dc_status":0,"motor_control_temp":0,"high_voltage_lock_status":0,"motor_temp":0,"vehicle_energy_unit_type_overcharge":0}
     */

    private String collect_time;
    private VehicleBean vehicle;
    private LocationBean location;
    private ExtremumBean extremum;
    private AlarmBean alarm;
    private List<MotorBean> motor;

    public String getCollect_time() {
        return collect_time;
    }

    public void setCollect_time(String collect_time) {
        this.collect_time = collect_time;
    }

    public VehicleBean getVehicle() {
        return vehicle;
    }

    public void setVehicle(VehicleBean vehicle) {
        this.vehicle = vehicle;
    }

    public LocationBean getLocation() {
        return location;
    }

    public void setLocation(LocationBean location) {
        this.location = location;
    }

    public ExtremumBean getExtremum() {
        return extremum;
    }

    public void setExtremum(ExtremumBean extremum) {
        this.extremum = extremum;
    }

    public AlarmBean getAlarm() {
        return alarm;
    }

    public void setAlarm(AlarmBean alarm) {
        this.alarm = alarm;
    }

    public List<MotorBean> getMotor() {
        return motor;
    }

    public void setMotor(List<MotorBean> motor) {
        this.motor = motor;
    }

    public static class VehicleBean {
        /**
         * vehicle_status : 1
         * charge_status : 3
         * running_mode : 1
         * speed : 0
         * record_mileage : 200
         * total_voltage : 624
         * total_current : 0
         * soc : 100
         * dc_status : 1
         * gear : P
         * braking_force : 0
         * driving_force : 0
         * insulation_resistance : 288
         * accelerator_pedal_stroke : 0
         * brake_pedal_status : 0
         */

        private int vehicle_status;
        private int charge_status;
        private String running_mode;
        private int speed;
        private String record_mileage;
        private String total_voltage;
        private String total_current;
        private int soc;
        private int dc_status;
        private String gear;
        private String braking_force;
        private String driving_force;
        private String insulation_resistance;
        private String accelerator_pedal_stroke;
        private int brake_pedal_status;

        public int getVehicle_status() {
            return vehicle_status;
        }

        public void setVehicle_status(int vehicle_status) {
            this.vehicle_status = vehicle_status;
        }

        public int getCharge_status() {
            return charge_status;
        }

        public void setCharge_status(int charge_status) {
            this.charge_status = charge_status;
        }

        public String getRunning_mode() {
            return running_mode;
        }

        public void setRunning_mode(String running_mode) {
            this.running_mode = running_mode;
        }

        public int getSpeed() {
            return speed;
        }

        public void setSpeed(int speed) {
            this.speed = speed;
        }

        public String getRecord_mileage() {
            return record_mileage;
        }

        public void setRecord_mileage(String record_mileage) {
            this.record_mileage = record_mileage;
        }

        public String getTotal_voltage() {
            return total_voltage;
        }

        public void setTotal_voltage(String total_voltage) {
            this.total_voltage = total_voltage;
        }

        public String getTotal_current() {
            return total_current;
        }

        public void setTotal_current(String total_current) {
            this.total_current = total_current;
        }

        public int getSoc() {
            return soc;
        }

        public void setSoc(int soc) {
            this.soc = soc;
        }

        public int getDc_status() {
            return dc_status;
        }

        public void setDc_status(int dc_status) {
            this.dc_status = dc_status;
        }

        public String getGear() {
            return gear;
        }

        public void setGear(String gear) {
            this.gear = gear;
        }

        public String getBraking_force() {
            return braking_force;
        }

        public void setBraking_force(String braking_force) {
            this.braking_force = braking_force;
        }

        public String getDriving_force() {
            return driving_force;
        }

        public void setDriving_force(String driving_force) {
            this.driving_force = driving_force;
        }

        public String getInsulation_resistance() {
            return insulation_resistance;
        }

        public void setInsulation_resistance(String insulation_resistance) {
            this.insulation_resistance = insulation_resistance;
        }

        public String getAccelerator_pedal_stroke() {
            return accelerator_pedal_stroke;
        }

        public void setAccelerator_pedal_stroke(String accelerator_pedal_stroke) {
            this.accelerator_pedal_stroke = accelerator_pedal_stroke;
        }

        public int getBrake_pedal_status() {
            return brake_pedal_status;
        }

        public void setBrake_pedal_status(int brake_pedal_status) {
            this.brake_pedal_status = brake_pedal_status;
        }
    }

    public static class LocationBean {
        /**
         * status : 0
         * lng : 104.081674
         * lat : 30.585292
         */

        private int status;
        private double lng;
        private double lat;

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public double getLng() {
            return lng;
        }

        public void setLng(double lng) {
            this.lng = lng;
        }

        public double getLat() {
            return lat;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }
    }

    public static class ExtremumBean {
        /**
         * highest_voltage_battery_subsys_num : 1
         * highest_voltage_battery_single_num : 22
         * battery_single_highest_voltage : 3.604
         * lowest_voltage_battery_subsys_num : 1
         * lowest_voltage_battery_single_num : 102
         * battery_single_lowest_voltage : 3.411
         * highest_temp_battery_subsys_num : 1
         * highest_temp_battery_probe_num : 9
         * highest_temp : 11
         * lowest_temp_battery_subsys_num : 1
         * lowest_temp_battery_probe_num : 1
         * lowest_temp : 10
         */

        private int highest_voltage_battery_subsys_num;
        private int highest_voltage_battery_single_num;
        private double battery_single_highest_voltage;
        private int lowest_voltage_battery_subsys_num;
        private int lowest_voltage_battery_single_num;
        private double battery_single_lowest_voltage;
        private int highest_temp_battery_subsys_num;
        private int highest_temp_battery_probe_num;
        private int highest_temp;
        private int lowest_temp_battery_subsys_num;
        private int lowest_temp_battery_probe_num;
        private int lowest_temp;

        public int getHighest_voltage_battery_subsys_num() {
            return highest_voltage_battery_subsys_num;
        }

        public void setHighest_voltage_battery_subsys_num(int highest_voltage_battery_subsys_num) {
            this.highest_voltage_battery_subsys_num = highest_voltage_battery_subsys_num;
        }

        public int getHighest_voltage_battery_single_num() {
            return highest_voltage_battery_single_num;
        }

        public void setHighest_voltage_battery_single_num(int highest_voltage_battery_single_num) {
            this.highest_voltage_battery_single_num = highest_voltage_battery_single_num;
        }

        public double getBattery_single_highest_voltage() {
            return battery_single_highest_voltage;
        }

        public void setBattery_single_highest_voltage(double battery_single_highest_voltage) {
            this.battery_single_highest_voltage = battery_single_highest_voltage;
        }

        public int getLowest_voltage_battery_subsys_num() {
            return lowest_voltage_battery_subsys_num;
        }

        public void setLowest_voltage_battery_subsys_num(int lowest_voltage_battery_subsys_num) {
            this.lowest_voltage_battery_subsys_num = lowest_voltage_battery_subsys_num;
        }

        public int getLowest_voltage_battery_single_num() {
            return lowest_voltage_battery_single_num;
        }

        public void setLowest_voltage_battery_single_num(int lowest_voltage_battery_single_num) {
            this.lowest_voltage_battery_single_num = lowest_voltage_battery_single_num;
        }

        public double getBattery_single_lowest_voltage() {
            return battery_single_lowest_voltage;
        }

        public void setBattery_single_lowest_voltage(double battery_single_lowest_voltage) {
            this.battery_single_lowest_voltage = battery_single_lowest_voltage;
        }

        public int getHighest_temp_battery_subsys_num() {
            return highest_temp_battery_subsys_num;
        }

        public void setHighest_temp_battery_subsys_num(int highest_temp_battery_subsys_num) {
            this.highest_temp_battery_subsys_num = highest_temp_battery_subsys_num;
        }

        public int getHighest_temp_battery_probe_num() {
            return highest_temp_battery_probe_num;
        }

        public void setHighest_temp_battery_probe_num(int highest_temp_battery_probe_num) {
            this.highest_temp_battery_probe_num = highest_temp_battery_probe_num;
        }

        public int getHighest_temp() {
            return highest_temp;
        }

        public void setHighest_temp(int highest_temp) {
            this.highest_temp = highest_temp;
        }

        public int getLowest_temp_battery_subsys_num() {
            return lowest_temp_battery_subsys_num;
        }

        public void setLowest_temp_battery_subsys_num(int lowest_temp_battery_subsys_num) {
            this.lowest_temp_battery_subsys_num = lowest_temp_battery_subsys_num;
        }

        public int getLowest_temp_battery_probe_num() {
            return lowest_temp_battery_probe_num;
        }

        public void setLowest_temp_battery_probe_num(int lowest_temp_battery_probe_num) {
            this.lowest_temp_battery_probe_num = lowest_temp_battery_probe_num;
        }

        public int getLowest_temp() {
            return lowest_temp;
        }

        public void setLowest_temp(int lowest_temp) {
            this.lowest_temp = lowest_temp;
        }
    }

    public static class AlarmBean {
        /**
         * highest_alarm_level : 3
         * temp_diff : 0
         * battery_high_temp : 0
         * power_battery_pack_overvoltage : 0
         * power_battery_pack_undervoltage : 0
         * soc_low : 0
         * single_battery_overvoltage : 0
         * single_battery_undervoltage : 0
         * soc_hightest : 0
         * soc_jump_change : 0
         * power_battery_pack_mismatch : 0
         * power_battery_pack_consistency_diff : 0
         * insulation : 1
         * dc_dc_temp : 0
         * brake_sys : 0
         * dc_dc_status : 0
         * motor_control_temp : 0
         * high_voltage_lock_status : 0
         * motor_temp : 0
         * vehicle_energy_unit_type_overcharge : 0
         */

        private int highest_alarm_level;
        private int temp_diff;
        private int battery_high_temp;
        private int power_battery_pack_overvoltage;
        private int power_battery_pack_undervoltage;
        private int soc_low;
        private int single_battery_overvoltage;
        private int single_battery_undervoltage;
        private int soc_hightest;
        private int soc_jump_change;
        private int power_battery_pack_mismatch;
        private int power_battery_pack_consistency_diff;
        private int insulation;
        private int dc_dc_temp;
        private int brake_sys;
        private int dc_dc_status;
        private int motor_control_temp;
        private int high_voltage_lock_status;
        private int motor_temp;
        private int vehicle_energy_unit_type_overcharge;

        public int getHighest_alarm_level() {
            return highest_alarm_level;
        }

        public void setHighest_alarm_level(int highest_alarm_level) {
            this.highest_alarm_level = highest_alarm_level;
        }

        public int getTemp_diff() {
            return temp_diff;
        }

        public void setTemp_diff(int temp_diff) {
            this.temp_diff = temp_diff;
        }

        public int getBattery_high_temp() {
            return battery_high_temp;
        }

        public void setBattery_high_temp(int battery_high_temp) {
            this.battery_high_temp = battery_high_temp;
        }

        public int getPower_battery_pack_overvoltage() {
            return power_battery_pack_overvoltage;
        }

        public void setPower_battery_pack_overvoltage(int power_battery_pack_overvoltage) {
            this.power_battery_pack_overvoltage = power_battery_pack_overvoltage;
        }

        public int getPower_battery_pack_undervoltage() {
            return power_battery_pack_undervoltage;
        }

        public void setPower_battery_pack_undervoltage(int power_battery_pack_undervoltage) {
            this.power_battery_pack_undervoltage = power_battery_pack_undervoltage;
        }

        public int getSoc_low() {
            return soc_low;
        }

        public void setSoc_low(int soc_low) {
            this.soc_low = soc_low;
        }

        public int getSingle_battery_overvoltage() {
            return single_battery_overvoltage;
        }

        public void setSingle_battery_overvoltage(int single_battery_overvoltage) {
            this.single_battery_overvoltage = single_battery_overvoltage;
        }

        public int getSingle_battery_undervoltage() {
            return single_battery_undervoltage;
        }

        public void setSingle_battery_undervoltage(int single_battery_undervoltage) {
            this.single_battery_undervoltage = single_battery_undervoltage;
        }

        public int getSoc_hightest() {
            return soc_hightest;
        }

        public void setSoc_hightest(int soc_hightest) {
            this.soc_hightest = soc_hightest;
        }

        public int getSoc_jump_change() {
            return soc_jump_change;
        }

        public void setSoc_jump_change(int soc_jump_change) {
            this.soc_jump_change = soc_jump_change;
        }

        public int getPower_battery_pack_mismatch() {
            return power_battery_pack_mismatch;
        }

        public void setPower_battery_pack_mismatch(int power_battery_pack_mismatch) {
            this.power_battery_pack_mismatch = power_battery_pack_mismatch;
        }

        public int getPower_battery_pack_consistency_diff() {
            return power_battery_pack_consistency_diff;
        }

        public void setPower_battery_pack_consistency_diff(int power_battery_pack_consistency_diff) {
            this.power_battery_pack_consistency_diff = power_battery_pack_consistency_diff;
        }

        public int getInsulation() {
            return insulation;
        }

        public void setInsulation(int insulation) {
            this.insulation = insulation;
        }

        public int getDc_dc_temp() {
            return dc_dc_temp;
        }

        public void setDc_dc_temp(int dc_dc_temp) {
            this.dc_dc_temp = dc_dc_temp;
        }

        public int getBrake_sys() {
            return brake_sys;
        }

        public void setBrake_sys(int brake_sys) {
            this.brake_sys = brake_sys;
        }

        public int getDc_dc_status() {
            return dc_dc_status;
        }

        public void setDc_dc_status(int dc_dc_status) {
            this.dc_dc_status = dc_dc_status;
        }

        public int getMotor_control_temp() {
            return motor_control_temp;
        }

        public void setMotor_control_temp(int motor_control_temp) {
            this.motor_control_temp = motor_control_temp;
        }

        public int getHigh_voltage_lock_status() {
            return high_voltage_lock_status;
        }

        public void setHigh_voltage_lock_status(int high_voltage_lock_status) {
            this.high_voltage_lock_status = high_voltage_lock_status;
        }

        public int getMotor_temp() {
            return motor_temp;
        }

        public void setMotor_temp(int motor_temp) {
            this.motor_temp = motor_temp;
        }

        public int getVehicle_energy_unit_type_overcharge() {
            return vehicle_energy_unit_type_overcharge;
        }

        public void setVehicle_energy_unit_type_overcharge(int vehicle_energy_unit_type_overcharge) {
            this.vehicle_energy_unit_type_overcharge = vehicle_energy_unit_type_overcharge;
        }
    }

    public static class MotorBean {
        /**
         * sn : 1
         * status : 3
         * control_temp : 28
         * speed : 0
         * torque : 0
         * motor_temp : 35
         * control_in_voltage : 123
         * control_bus_current : 0
         */

        private String sn;
        private int status;
        private String control_temp;
        private int speed;
        private String torque;
        private String motor_temp;
        private String control_in_voltage;
        private String control_bus_current;

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getControl_temp() {
            return control_temp;
        }

        public void setControl_temp(String control_temp) {
            this.control_temp = control_temp;
        }

        public int getSpeed() {
            return speed;
        }

        public void setSpeed(int speed) {
            this.speed = speed;
        }

        public String getTorque() {
            return torque;
        }

        public void setTorque(String torque) {
            this.torque = torque;
        }

        public String getMotor_temp() {
            return motor_temp;
        }

        public void setMotor_temp(String motor_temp) {
            this.motor_temp = motor_temp;
        }

        public String getControl_in_voltage() {
            return control_in_voltage;
        }

        public void setControl_in_voltage(String control_in_voltage) {
            this.control_in_voltage = control_in_voltage;
        }

        public String getControl_bus_current() {
            return control_bus_current;
        }

        public void setControl_bus_current(String control_bus_current) {
            this.control_bus_current = control_bus_current;
        }
    }
}
